package org.example;

public class ArmyTest {
    public static void main(String[] args) {
        Army army=new Army("十二战队",23);
        Navy navy=new Navy("第五战队",56,"和谐号");
        AirForce airForce=new AirForce("空军空警",88,"战斗机");
        GradeForce gradeForce=new GradeForce("丰田",76,"小轿车");
        navy.mission();
        airForce.mission();
        gradeForce.mission();
        navy.displayInfo();
        System.out.println("姓名："+army.getName()+"力量："+army.getStrength());
        System.out.println("姓名："+navy.getName()+"力量："+navy.getStrength()+"作战："+navy.getShipName());
        System.out.println("姓名："+airForce.getName()+"力量："+airForce.getStrength()+"作战："+airForce.getAircraftModel());
        System.out.println("姓名："+gradeForce.getName()+"力量："+gradeForce.getStrength()+"作战："+gradeForce.getVehicleType());
    }
}
